package com.xiaohao.communication.service;

import com.xiaohao.communication.bean.WorkClassifications;
import com.xiaohao.communication.daoImpl.WorkClassificationDaoImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WorkClassificationsService {

    @Autowired
    private WorkClassificationDaoImpl workClassificationDaoImpl;

    public List<WorkClassifications> getAll() {
        return workClassificationDaoImpl.findAll();
    }

    public WorkClassifications getByType(String type) {
        return workClassificationDaoImpl.findByType(type);
    }
}
